<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="utf-8" />
    <title>自媒体 | 软文发布与品牌营销效果追踪平台</title>
    <meta name="keywords" content="软文发布,软文发布平台,品牌营销,品牌营销平台">
    <meta name="description" content="宏运传媒致力打造软文发布与品牌营销效果追踪平台，帮助中小企业在营销决策，营销投放，效果追踪三个环节上，实现自动发布软文稿件，以及自动追踪品牌营销效果。">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <link rel="stylesheet" href="/iqianfeng/css/animate.css">
    <link rel="stylesheet" href="/iqianfeng/css/swiper.min.css">
    <link rel="stylesheet" href="/iqianfeng/css/city-picker.css">
    <link rel="stylesheet" href="/iqianfeng/css/jquery.validator.css">
    <link rel="stylesheet" href="/iqianfeng/css/all.css">
    <link rel="stylesheet" href="/iqianfeng/css/common.css">
    <link rel="stylesheet" href="/iqianfeng/css/index.css">
    <link rel="stylesheet" type="text/css" href="/iqianfeng/css/public.css"/>
    <link rel="stylesheet" type="text/css" href="/iqianfeng/css/mygrxx.css" />
    <link rel="stylesheet" type="text/css" href="/iqianfeng/css/public.css"/>
    <link rel="stylesheet" type="text/css" href="/iqianfeng/css/mygrxx.css" />
    <link rel="stylesheet" href="/layui/lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="/layui/css/public.css" media="all">
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="/layui/css/login.css">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>
<!------------------------------head------------------------------>
<%--<header id="header">--%>
<%--    <nav class="nav-fixed-top" id="pc_header">--%>
<%--        <div class="container">--%>
<%--            <div class="navbar">--%>
<%--                <div class="navbar-header">--%>
<%--                    <a href="" class="nav-brand">--%>
<%--                        <img class="img" src="/iqianfeng/img/111.png" alt="宏运传媒 | 软文发布与品牌营销效果追踪平台">--%>
<%--                    </a>--%>
<%--                    <div class="navbar-tools">--%>
<%--                        <span class="icon more"></span>--%>
<%--                    </div>--%>
<%--                </div>--%>
<%--                <div class="navbar-mask">--%>
<%--                    <div class="com_header_collapse animate_3">--%>
<%--                        <div class="nav-mob_collapse_head">--%>
<%--                            <a href="https://www.iqianfeng.com" class="nav-brand">--%>
<%--                                <img class="img" src="/iqianfeng/img/111.png" alt="宏运传媒 | 软文发布与品牌营销效果追踪平台">--%>
<%--                            </a>--%>
<%--                        </div>--%>
<%--                        <div class="com_header_collapse_ul_cont">--%>
<%--                            <ul class="nav navbar-nav navbar-nav-left">--%>
<%--                                <li class="active">--%>
<%--                                    <a href="/index" class="nav-link">首页</a>--%>
<%--                                </li>--%>
<%--                                <li class="dropdown">--%>
<%--                                    <a href="https://www.iqianfeng.com/ruanwentuiguang/" class="dropdown-toggle nav-link linkTo" data-link="worth-section">微信<span class="htip-Hot">HOT</span></a>--%>
<%--                                </li>--%>
<%--                                <li class="dropdown">--%>
<%--                                    <div class="dropdown-toggle nav-link linkTo" data-link="worth-section">微博</div>--%>
<%--                                    <div class="dropdown-menu dropdown-menu-media dropdown-pc-ol"></div>--%>
<%--                                    <div class="drop-media-content">--%>
<%--                                        <div class="drop-media-content-ibox drop-media-content-ibox1 active">--%>
<%--                                        </div>--%>
<%--                                        <div class="drop-media-content-ibox">--%>
<%--                                        </div>--%>
<%--                                        <div class="drop-media-content-ibox">--%>

<%--                                        </div>--%>
<%--                                    </div>--%>


<%--                                    <div class="dropdown-menu dropdown-mob-ol">--%>

<%--                                    </div>--%>
<%--                                </li>--%>

<%--                                <li class="dropdown">--%>
<%--                                    <a href="https://www.iqianfeng.com/anli/" class="nav-link linkTo">小红书</a>--%>
<%--                                    <div class="dropdown-menu dropdown-menu-case">--%>


<%--                                    </div>--%>

<%--                                    <div class="dropdown-menu dropdown-mob-ol">--%>
<%--                                        <ul class="dropdown-cont">--%>


<%--                                        </ul>--%>
<%--                                    </div>--%>
<%--                                </li>--%>
<%--                                <li class="dropdown">--%>
<%--                                    <a href="/qiche/" class="nav-link linkTo" data-link="case-section">淘宝/京东达人</a>--%>
<%--                                    <div class="dropdown-menu dropdown-menu-case dropdown-menu-hy">--%>


<%--                                    </div>--%>

<%--                                    <div class="dropdown-menu dropdown-mob-ol">--%>

<%--                                    </div>--%>
<%--                                </li>--%>
<%--                                <li class="dropdown">--%>
<%--                                    <a href="/douyin" class="nav-link linkTo">直播/短视频</a>--%>
<%--                                    <div class="dropdown-menu dropdown-menu-case dropdown-menu-serv">--%>

<%--                                    </div>--%>
<%--                                    <div class="dropdown-menu dropdown-mob-ol"></div>--%>
<%--                                </li>--%>
<%--                                <li class="dropdown">--%>
<%--                                    <a href="#" class="nav-link linkTo">今日头条</a>--%>
<%--                                    <div class="dropdown-menu"></div>--%>
<%--                                </li>--%>
<%--                                <li class="dropdown">--%>
<%--                                    <a href="#" class="nav-link linkTo">facebook/twitter</a>--%>
<%--                                </li>--%>
<%--                                <li class="dropdown">--%>
<%--                                    <a href="#" class="nav-link linkTo">新闻全案</a>--%>
<%--                                </li>--%>
<%--                                <li class="dropdown">--%>
<%--                                    <a href="https://www.iqianfeng.com/about/" class="nav-link linkTo">更多资源<b class="icon"></b></a>--%>
<%--                                    <div class="dropdown-menu">--%>
<%--                                        <ul class="dropdown-cont">--%>
<%--                                            <li><a href="https://www.iqianfeng.com/lianxi/" class="nav-link">联系我们</a></li><li><a href="https://www.iqianfeng.com/help/" class="nav-link">帮助中心</a></li>--%>
<%--                                        </ul>--%>
<%--                                    </div>--%>
<%--                                </li>--%>
<%--                            </ul>--%>
<%--                            <ul class="nav navbar-nav navbar-nav-right com_header_collapse_ul_cont_btns">--%>
<%--                                <li>--%>
<%--                                    <a href="javascript:;" style="color: black">${account.username}</a>--%>
<%--                                </li>--%>
<%--                                <li>--%>
<%--                                    <a href="http://a.iqianfeng.com/" data-bd_yx="ty1" rel="nofollow" target="_blank" class="nav-link spl-link">帮助中心</a>--%>
<%--                                </li>--%>
<%--                            </ul>--%>
<%--                        </div>--%>
<%--                    </div>--%>
<%--                </div>--%>
<%--            </div>--%>
<%--        </div>--%>
<%--    </nav>--%>
<%--</header>--%>
<!------------------------------idea------------------------------>
<!------------------------------Bott------------------------------>
<div class="Bott">
    <div class="wrapper clearfix">
        <div class="layui-form layuimini-form">
            <div class="zuo fl">
                <div>
                </div>
            </div>
            <form class="layui-form login-bottom">
            <div class="you fl">
                <h2>编辑个人信息</h2><h3 class="fr" style="margin-top: -60px;"><a href="/Personal?id=${account.id}">返回</a></h3>
                <div class="gxin">

                    <div class="xp">
                        <input type="hidden" name="id" value="${account.id}">
                        <div class="layui-form-item">
                            <label class="layui-form-label required">用户名</label>
                            <div class="layui-input-block">
                                <input type="text" name="username" readonly="true" lay-verify="required" lay-reqtext="请输入要修改的用户名" placeholder="请输入要修改的用户名" value="${account.username}" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label required">公司</label>
                            <div class="layui-input-block">
                                <input type="text" name="companyName" lay-verify="required" lay-reqtext="请输入新的公司昵称" placeholder="请输入新的公司昵称" value="${account.companyName}" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label required">地址</label>
                            <div class="layui-input-block">
                                <input type="text" name="companyAddress" lay-verify="required" lay-reqtext="请输入要修改的地址" placeholder="请输入要修改的地址" value="${account.companyAddress}" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label required">网址</label>
                            <div class="layui-input-block">
                                <input type="text" name="companyUrl" lay-verify="required" lay-reqtext="请输入要修改的网址" placeholder="请输入要修改的网址" value="${account.companyUrl}" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label required">公司介绍</label>
                            <div class="layui-input-block">
                                <textarea name="companyDescribe" required lay-verify="required" placeholder="请修改公司介绍" class="layui-textarea">${account.companyDescribe}</textarea>
                            </div>
                        </div>
                        <div>

                        </div>
                        <div>

                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label required">联系人</label>
                            <div class="layui-input-block">
                                <input type="text" name="linkman" lay-verify="required" lay-reqtext="修改联系人" placeholder="修改联系人" value="${account.linkman}" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label required">手机号</label>
                            <div class="layui-input-block">
                                <input type="text" name="phoneNum" lay-verify="phone" lay-reqtext="输入要修改的手机号" placeholder="输入要修改的手机号" value="${account.phoneNum}" class="layui-input" style="width: 150px">
                            </div>
                            <button type="button" class="layui-btn" style="margin-top: -84px;margin-left: 300px" lay-submit lay-filter="yzm">发送验证码</button>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label required">微信号</label>
                            <div class="layui-input-block">
                                <input type="text" name="wechat" lay-reqtext="输入要修改的微信号" placeholder="输入要修改的微信号" value="${account.wechat}" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn layui-btn-normal" id="button" lay-submit lay-filter="saveBtn">确认保存</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            </form>
        </div>
    </div>
</div>
<%--<script src="/iqianfeng/js/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>--%>
<script src="/iqianfeng/js/public.js" type="text/javascript" charset="utf-8"></script>
<script src="/iqianfeng/js/user.js" type="text/javascript" charset="utf-8"></script>
<%--<script src="https://www.iqianfeng.com/public/js/jquery.min.js"></script>--%>
<script src="/iqianfeng/js/swiper.min.js"></script>
<script src="/iqianfeng/js/wow.min.js"></script>
<script src="/iqianfeng/js/layer.js"></script>
<%--<script src="https://www.iqianfeng.com/public/js/jquery.validator.js"></script>--%>
<script src="/iqianfeng/js/city-picker.data.js"></script>
<script src="https://www.iqianfeng.com/public/tools/cityPicker/js/city-picker.js"></script>
<script src="/iqianfeng/js/common.js"></script>
<%--<script src="https://www.iqianfeng.com/public/js/index.js"></script>--%>
<%--<script src="/iqianfeng/js/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>--%>
<script src="/iqianfeng/js/public.js" type="text/javascript" charset="utf-8"></script>
<script src="/iqianfeng/js/user.js" type="text/javascript" charset="utf-8"></script>
<script src="/layui/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="/layui/js/lay-config.js?v=2.0.0" charset="utf-8"></script>
<script src="/layui/js/forget.js"></script>
<script src="/layui/js/login.js"></script>
</body>
</html>
<script>
    layui.use(['form','jquery'], function () {
        var $ = layui.jquery,
            form = layui.form,
            layer = layui.layer;

        //监听提交
        form.on('submit(saveBtn)', function (data) {

            $.ajax({
                url: '/modify',
                type: 'post',
                data: JSON.stringify(data.field),
                contentType: 'application/json',
                dataType: 'json',
                success: function (result) {
                    if (result.code == '0') {
                        // 关闭弹出层

                        layer.close();
                        window.location='/Personal?id=${account.id}'
                    }
                }
            });

            return false;
        });

    });
</script>
</body>
</html>